package cn.taokuaidi.wangwang.client.smart;

/**
 * @author 嘉陵江里捉鱼 email:tang7259@163.com
 *@version 1.0
 *@time Nov 21, 2008 9:35:52 AM
 */
public class AppConfig {

    public static final int LAYOUT_DEFAULT = 1;
    public static final int LAYOUT_1680    = 2;
    public int              buyerGridWidth;
    public int              buyerGridHeight;
    public int              sellerGridWidth;
    public int              sellerGridHeight;
    public int              vpWidth;
    public int              vpHeight;
    public int              statWidth;
    public int              statHeight;
    public int              sellerGridPageSize;
    public int              buyerGridPageSize;
    public int              layout;

    public static AppConfig getDefaultAppConfig() {
        AppConfig retVal = new AppConfig();
        retVal.buyerGridWidth = 1020;
        retVal.buyerGridHeight = 600;
        retVal.sellerGridWidth = 480;
        retVal.sellerGridHeight = 480;
        retVal.vpWidth = 480;
        retVal.vpHeight = 480;
        retVal.statWidth = 1020;
        retVal.statHeight = 600;
        retVal.sellerGridPageSize = 15;
        retVal.buyerGridPageSize = 16;
        retVal.layout = AppConfig.LAYOUT_DEFAULT;
        return retVal;
    }

    public static AppConfig get1680AppConfig() {
        AppConfig retVal = new AppConfig();
        retVal.buyerGridWidth = 830;
        retVal.buyerGridHeight = 450;
        retVal.sellerGridWidth = 850;
        retVal.sellerGridHeight = 900;
        retVal.statWidth = 830;
        retVal.statHeight = 400;
        retVal.sellerGridPageSize = 50;
        retVal.buyerGridPageSize = 50;

        retVal.layout = AppConfig.LAYOUT_1680;
        return retVal;
    }
}
